package com.icss.day01;

public class VipCard {
    String name;
    String cardNo;

    String phone;

    public String getName() {
        return name;
    }

    public String getCardNo() {
        return cardNo;
    }

    public String getPhone() {
        return phone;
    }

    public double getAccount() {
        return account;
    }

    public double getJifen() {
        return jifen;
    }

    double account;

    double jifen;

    public void xiaofei(int price) {
        if (price >= 2000) {
            account = account - price * 0.8;
        } else if (price >= 1000) {
            account = account - price * 0.5;
        } else {
            account = account - price;
        }
    }

    public void chongzhi() {

    }

}
